import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    newsId: [],
  },
  getters: {
  },
  mutations: {
    setNewsId(state, newsId) {
      // state.newsId = [...state.newsId, ...newsId];
      state.newsId = state.newsId.concat(newsId);
    }
  },
  actions: {
  },
  modules: {
  }
})
